# coding=utf-8
import re

# 匹配出163的邮箱地址，且@符号之前有4到20位，例如hello@163.com
reg = '(\w{4,20})@163.com$'

match = re.match(reg, 'he1l@163.com')
if match is None:
    print('none')
else:
    print(match.group())
    for value in match.group():
        print(value)
